package views.windows;

import java.awt.BorderLayout;

import javax.swing.JScrollPane;
import javax.swing.JTable;

public class PositionsTablePanel extends javax.swing.JPanel {
	
	private static final long serialVersionUID = 1L;
	JTable PositionsTable;
	
	public PositionsTablePanel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try
		{
			BorderLayout thisLayout = new BorderLayout();
			this.setLayout(thisLayout);

			this.setPreferredSize(new java.awt.Dimension(517, 323));
			{
				{
					PositionsTable = new JTable();
					PositionsTable.setFillsViewportHeight(false);

					JScrollPane scrollPane = new JScrollPane(PositionsTable);

					this.add(PositionsTable.getTableHeader(), BorderLayout.PAGE_START);
					this.add(scrollPane, BorderLayout.CENTER);
					scrollPane.setPreferredSize(new java.awt.Dimension(510, 319));

				}
			}
		} 
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}

	public JTable getPositionsTable()
	{
		return PositionsTable;
	}
}
